import { http } from '@/services/request'
import type { IUnknownObjProps } from '@/interface/base.interface'
import type { IMenuItem } from '@/interface/types/pow/menu.interface'
// const prefix = `${import.meta.env.VITE_API_PREFIX}`

export const MenuService = {
  // 树
  async getMenuTreeApi(params: IUnknownObjProps): Promise<IMenuItem[]> {
    return http.get('/api/idt/menu/tree', params)
  },
}
